package com.laicunba.ext.service;

import java.util.List;
import java.util.Map;

import org.json.simple.parser.ParseException;

public interface SlaveActivityJoinService {
	
	public Map<String, Object> findTotalReward(String activityId, String userId);
	
	public int findGainCount(String activityId, String userId, String beginDate, String endDate);
	
	public List<Map<String, Object>> findActivityJoinList(String activityId, String subActId, String userId, int limit);
	
	public List<Map<String, Object>> findUserRewardData(String activityId, String userId);
	
	/**
	 * 查询用户各奖品获得情况
	 * @param activityId
	 * @param userId
	 * @return
	 */
	public List<Map<String, Object>> analysisUserReward(String activityId, String userId);
	
	/**
	 * 查询用户参与活动列表
	 * 
	 * @param activityId
	 * @param userId
	 * @return
	 */
	public List<Map<String, Object>> findActivityUserRewardList(String activityId, String userId) throws ParseException;
	
	/**
	 * 查询用户参与活动奖品列表
	 * 
	 * @param activityId 活动ID
	 * @param subActivityId 子活动ID
	 * @param userId
	 * @return
	 */
	public List<Map<String, Object>> findUserRewardList(String activityId, String subActivityId, String userId, Integer limitNums) throws ParseException;
	
}
